<?php

// $connect = mysql_connect('mysql17.000webhost.com','a4117838_simple','123simple');
$connect = mysql_connect('localhost','root','');
if (!$connect){
  die('Could not connect: ' . mysql_error($connect));
}
// mysql_select_db('a4117838_simple',$connect);
mysql_select_db('mydatabase',$connect);

if(!isset($_POST['voucher_code'])){
	$voucher_code	= "";
}
else{
	$voucher_code  	= $_POST['voucher_code'];
}
$email_address = $_POST['email_address'];
$name          = $_POST['name'];
$question      = $_POST['question'];
$tablename     = $_POST['tablename'];

mysql_query("insert into customquestion (voucher_code,email_address,name,question) VALUES('$voucher_code','$email_address','$name','$question') ");

?>